<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Conselheiro</title>
	<h:outputStylesheet library="css" name="styles.css" />
</h:head>
<h:body
	style="background: #006600; margin: 0; padding: 0; color: #006600;">
	<div align="center" style="margin: 0; padding: 0;">
		<div style="width: 1000px;">
			<div
				style="height: 180px; display: table; width: 100%; background: white;">
				<div align="left"
					style="display: table-cell; vertical-align: middle;">
					<div style="padding-left: 50px;">
						<h:outputLabel styleClass="labelMuitoGrande"
							style="font-size: 50px;" value="BomConselheiro.com" />
					</div>
				</div>
				<div align="right"
					style="display: table-cell; vertical-align: middle;">
					<div style="margin-right: 50px;">
						<h:form id="loginForm">
							<p:messages id="msgslogin" showDetail="false"/>
							<h:panelGrid columns="2" columnClasses="label1">
								<p:outputLabel value="Login:" for="inputLogin" />
								<p:inputText id="inputLogin" value="#{loginBean.login}"
									required="true" requiredMessage="Informe o login" />
								<p:outputLabel value="Senha:" for="inputSenha" />
								<p:inputText id="inputSenha" value="#{loginBean.senha}"
									required="true" requiredMessage="Informe a senha"
									type="password" />
							</h:panelGrid>
							<br />
							<p:commandButton id="btnLogin" value="Entrar"
								action="#{loginBean.logar}" update="loginForm" />
							<p:blockUI block="loginForm" trigger="btnLogin">
								Autenticando...
							</p:blockUI>
						</h:form>
					</div>
				</div>
			</div>

			<div style="padding-top: 3px;">
				<ui:insert name="principal" />
			</div>
		</div>
	</div>
</h:body>
</html>